package com.cxh.service.impl;

import com.cxh.base.Data1ServiceImpl;
import com.cxh.base.Data2ServiceImpl;
import com.cxh.util.DataSource;
import com.cxh.dao.SoundQuAnDao;
import com.cxh.entity.SoundQuAn;
import com.cxh.service.SoundQuAnService;
import com.cxh.util.CommonUtility;
import com.shimne.util.ObjectUtil;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 类说明：
 * @author  ChenXH
 * @date  2019-01-04 16:39:24
 */
@Service("soundQuAnService")
@DataSource("dataSource1")
public class SoundQuAnServiceImpl extends Data1ServiceImpl<SoundQuAn> implements SoundQuAnService {
    @Autowired
    private SoundQuAnDao dao;


    @Override
    public List<SoundQuAn> loadPageList(Map<String, Object> map) {
       return dao.loadPageList(map);
    }
    
    @Override
	public List<Map<String, Object>> loadByQu(Integer qId) {
		List<Map<String, Object>> list = new ArrayList<Map<String, Object>>();
		if(ObjectUtil.notNull(qId)){
			list = dao.loadByQu(qId);
		}
		return list;
	}
}
